home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / nameless.swf / scripts / frame_13 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  941 b   |  51 lines

  1. stop();
  2. _root.level = 6;
  3. _root.stopAllSounds();
  4. _root.music.stop();
  5. music = new Sound();
  6. music.attachSound("level6");
  7. music.start();
  8. music.onSoundComplete = function()
  9. {
  10.    music.start();
  11. };
  12. missileNum = 0;
  13. bNum = 0;
  14. _root.health = 100;
  15. _root.magic = 100;
  16. pauseMC.removeMovieClip();
  17. _root.createEmptyMovieClip("pauseMC",0);
  18. pview._visible = false;
  19. pauseMC.onEnterFrame = function()
  20. {
  21.    if(Key.isDown(80))
  22.    {
  23.       if(pausePress == false)
  24.       {
  25.          if(_root.pauseMode == false)
  26.          {
  27.             _root.pauseMode = true;
  28.          }
  29.          else
  30.          {
  31.             _root.pauseMode = false;
  32.          }
  33.          pausePress = true;
  34.       }
  35.    }
  36.    else
  37.    {
  38.       pausePress = false;
  39.    }
  40.    if(_root.pauseMode == true)
  41.    {
  42.       pview._visible = true;
  43.       _root.music.setVolume(40);
  44.    }
  45.    else
  46.    {
  47.       pview._visible = false;
  48.       _root.music.setVolume(100);
  49.    }
  50. };
  51.